package sports.dao.mapper;

import sports.dao.entity.SportsInfoPO;
import sports.dao.entity.SportsRecordPO;

import java.util.Date;
import java.util.List;

/**
 * Created by qianyang on 2018/4/26.
 */
public interface SportsMapper {
    SportsInfoPO getSportsInfoById(Integer sportsId);
    List<SportsRecordPO> selcetSportsRecord(Integer userId, Date date);
    List<SportsInfoPO> selcetALLSportsInfo();
    List<SportsInfoPO> selectSportsInfoByName(String name);
    SportsRecordPO getSportsRecordById(Integer sportsRecordId);
    int insertSportsRecord(SportsRecordPO sportsRecordPO);
    void delectSportsRecord(Integer id);
}
